package com.xyz.enums;

/**
 * @author 夏永泽
 * @date 2022/4/1
 */
public enum ResponseEnum {
    SUCCESS("00000", "操作成功"),
    FAILED("B5001", "操作失败"),
    FORBIDDEN("A0220", "用户名或密码错误"),
    USER_NOT_EXIST("B5001", "用户不存在"),
    ILLEGAL_ARGUMENT("B5001", "请求参数错误"),
    ILLEGAL_ACCESS("A0220", "非法访问");

    ResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    String code;
    String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
